/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hiof.moraa.server.service.model;

import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Bergy
 */
public abstract class Feed {

    private String username;
    private String fullname;
    private int userId;
    private String profilePicture;
    private Date timestamp;
    private static SimpleDateFormat dateFormat = new SimpleDateFormat("EEE, d MMM yyyy h:mm a");
    protected static DecimalFormat df = new DecimalFormat("#.######");

    public Feed(int userId, String username, String fullname, String profilePicture, Date timestamp) {
        this.userId = userId;
        this.username = username;
        this.fullname = fullname;
        this.profilePicture = profilePicture;
        this.timestamp = timestamp;
    }

    public String getProfilePicture() {
        return profilePicture;
    }

    public String getUsername() {
        return username;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public String getTimestampString() {
        return dateFormat.format(timestamp);
    }

    public abstract String getDescription();

    public abstract String getType();
}
